package dawnland03.model.utility;

import java.util.Random;

/**
 * User: Petru Obreja (obrejap@yahoo.com)
 * Date: Jan 23, 2010
 * Time: 11:02:11 PM
 */
public class Utility {
    private static final Random random;
    private static final Integer seed = 23;
    private static int uuid;

    static {
        random = new Random(seed);
        //warm up
        for (int i = 1; i <= 1000; i++) {
            random.nextInt(i);
        }
        uuid = 0;
    }


    public static int getNextInt(Integer size) {
        return random.nextInt(size);
    }

    public static int getNextUuid() {
        return ++uuid;
    }
}
